package com.dh.spring.thread.runnable;

import com.dh.spring.thread.runnable.InternalRunnableTask;

/**
 * 封装线程池内部线程和线程执行单元
 * */
public class ThreadRunnable {
    private InternalRunnableTask internalRunnableTask;
    private Thread thread;

    public ThreadRunnable(InternalRunnableTask internalRunnableTask, Thread thread) {
        this.internalRunnableTask = internalRunnableTask;
        this.thread = thread;
    }

    public InternalRunnableTask getInternalRunnableTask() {
        return internalRunnableTask;
    }

    public void setInternalRunnableTask(InternalRunnableTask internalRunnableTask) {
        this.internalRunnableTask = internalRunnableTask;
    }

    public Thread getThread() {
        return thread;
    }

    public void setThread(Thread thread) {
        this.thread = thread;
    }
}
